package test17;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-30
 * Time: 10:39
 */
public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        list.add("Java");
        list.add("C");
        list.add("C++");
        list.add("Go");
        list.add("swift");
        System.out.println(list.size());
        for (String s:list) {
            System.out.println(s);
        }
        list.remove("C++");
        System.out.println("=======================");
        System.out.println("移除C++后");
        for (String s:list) {
            System.out.println(s);
        }
    }
}
